<?php
use common\service\StaticService;
use common\service\GlobalUrlService;
use backend\assets\AdminAsset;
StaticService::includeAppJsStatic(GlobalUrlService::buildAdminUrl('/backend/shop/info-activity.js'),AdminAsset::class);
?>

<div class="layui-form-item">
    <a class="a1 layui-btn layui-btn-primary">查看商家信息</a>
    <a class="a2 layui-btn layui-btn-primary">查看商品列表</a>
    <a class="a3 layui-btn">查看活动列表</a>
</div>
<div class="layui-card">
    <div class="layui-card-header">活动列表</div>
    <div class="layui-card-body">
        <div class="layui-form-item">
            <form method="get" id="form1">
                <div class="layui-inline">
                    <label class="layui-form-label">活动名称</label>
                    <div class="layui-input-inline">
                        <input type="text" name="name" class="layui-input" placeholder="活动名称">
                        <input type="hidden" name="id" id="id" value="<?=$id?>"/>
                    </div>
                </div>
                <div class="layui-inline">
                    <button class="layui-btn" lay-submit lay-filter="serch-form">搜索</button>
                </div>
            </form>
        </div>
        <div class="layui-form-item">
            <table id="activityList" lay-filter="activityList"></table>
        </div>
        <div class="layui-form-item">
            <a class="layui-btn layui-btn-primary back">返回</a>
        </div>
    </div>
</div>

<script type="text/html" id="operation3">
    <a class="layui-btn layui-btn-xs" lay-event="detail">查看</a>
    {{# if(d.status == 1){ }}
    <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="prohibit">禁用</a>
    {{# } }}
</script>
